<?php

	echo "<p>".$html->link("Clique aqui","/organizations/cadastro/")." para cadastrar a sua entidade.</p>";
	if (isset($organizations) && is_array($organizations) && (!empty($organizations))) {
	
		echo "<table >";
			
		/* Registros */
		$i=0;
		foreach ($organizations as $organization) {
			echo "<tr>";
			
			echo "<td class='valign'>";
			echo "<span>".$html->image('../organizations/logo/'.$organization['Organization']['id'], array('class'=>'left','width'=>'100','hight'=>'100'))."</span>";

			echo "<div class='organizationResults'>";
			echo "<span><h3>".$organization['Organization']['nome']."</h3></span>";
			echo "<p>".$organization['Organization']['descricao']."</p>";
			if (!empty($organization['Organization']['site'])) {
				echo "<p><a href='".$organization['Organization']['site']."'>Visitar a página externa da entidade</a></p>";
			}
			echo "<p>".$html->link("Visitar a página da entidade","/site/".$organization['Organization']['alias'])."</p>";
			
			echo "</div>";
			echo "</td>";
			//echo "<td>".,'/organizations/view/'.$organization['Organization']['id'])."</td>";
			//echo "<td>".$organization['Organization']['site']."</td>";
			echo "</tr>";
		}
		echo "</table>";
	}
